package operation;

import cars.Factory;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mac
 * Date: 2022-11-28
 * Time: 20:58
 */
public class ModifyVehicle implements IOperation{
    @Override
    public void work(Factory factory) {
        factory.printVehicle();
        System.out.print("请输入要修改的汽车基本信息: 1.轿车 2.客车 3.卡车   ");
        int choice = scanner.nextInt();
        factory.modifyVehicle(choice);
        factory.printVehicle();
    }
}
